<template>
  <div class="original-range">
    <div class="header bg-yellow text-center">
      <font class="font30" color="#000080">『</font>
      <font class="font30" color="#FF0000">花</font>
      <font class="font30" color="#0000FF">仙</font>
      <font class="font30" color="#FF00FF">子</font>
      <font class="font30" color="#008080">』</font>
      <font face="微软雅黑" class="font30">→原创</font>
      <font face="微软雅黑" color="#FF0000" class="font30"
        >〖澳彩公式规律〗</font
      >
    </div>
    <template v-for="(item, index) of data.originalRange">
      <div
        :style="{
          borderBottom:
            index < data.originalRange.length - 1
              ? '0.1rem solid #000080'
              : 0,
        }"
        class="item-content font35 text-center font-bolder"
        @click="toPage(item.url)"
      >
        <font class="black"
          >{{ item.period }}：{{ item.title
          }}<span class="red">{{ item.content }}</span
          >{{ item.desc }}</font
        >
      </div>
    </template>
  </div>
</template>
<script setup>
import { onMounted, reactive } from "vue";
import { getApiOriginalRangeData } from "@/api/api";

const data = reactive({
  originalRange: [],
});
const toPage = (url) => {
  window.open(url);
};
onMounted(() => {
  getOriginalRangeData()
})
const getOriginalRangeData = () => {
  getApiOriginalRangeData({type:3,style:1}).then(res => {
    data.originalRange = res
  })
}
</script>
<style lang="less" scoped>
.original-range {
  background: #fff;
  border: 0.1rem solid #000080;
}

.header {
  padding: 5px 0;
}
.item-content {
  cursor: pointer;
  padding: 0.8rem 0;
}
</style>
